package edu.hunan.cxb18.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author chenheng
 * @create 2020-03-29 10:04
 */
@Controller
public class HellowController {
    @RequestMapping("/hello")
    public ModelAndView test(){
        ModelAndView mv = new ModelAndView();
        //hello为逻辑视图名，根据视图解析器来获得前缀与后缀
        mv.setViewName("hello");
        return mv;
    }
}
